package com.controller;

import com.service.QrcodeService;
import com.utils.ResultJson;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;


//联系我们控制层
@Controller
@RequestMapping("/QrcodeController.do")
public class QrcodeController {
    @Autowired
    private QrcodeService qrcodeService;
    /**
     * 根据手机号码，发送验证码
     * */
    @RequestMapping(params ="getUserInfo",method={RequestMethod.POST})
    @ResponseBody
    public String getUserInfo(@RequestParam(value="id",required=true) String id) throws Exception {
    	ResultJson resultJson=qrcodeService.getUserInfo(id);
    	return resultJson.getCommonJson();
    }
}
